package com.team.arms.public_data.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team.arms.public_data.domain.SoldierInformation;
import com.team.arms.public_data.mapper.SoldierInformationMapper;
import com.team.arms.public_data.service.SoldierInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class SoldierInformationServiceImpl extends ServiceImpl<SoldierInformationMapper, SoldierInformation>
    implements SoldierInformationService{

    @Autowired
    private SoldierInformationMapper soldierInformationMapper;

    @Override
    public int insertAll(SoldierInformation soldierInformation) {
        return soldierInformationMapper.insertAll(soldierInformation);
    }

    @Override
    public SoldierInformation selectById(String id) {
        return soldierInformationMapper.selectAllBySoldierInfoId(id);
    }

}




